<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>词多多代理商平台</title>
    <include file="Index:header" />
    <script type="text/javascript">
        $(function(){
            $(".help-side dl dd:eq(0)").addClass('cur');
        })
    </script>
    <script type="text/javascript">
        $(function(){
            $("#top #topcon .nav li:eq(1)").addClass('cur');
        })
    </script>
    <script src="__PUBLIC__/js/main.js" type="text/javascript" charset="UTF-8"></script>
    <SCRIPT type="text/javascript">
        var setting = {
            edit: {
                enable: true,
                showRemoveBtn: false,
                showRenameBtn: false
            },
            data: {
                simpleData: {
                    enable: true
                }
            },
            callback: {
                beforeDrag: beforeDrag,
                beforeDrop: beforeDrop,
                onDrop: onDrop
            }
        };
        var zNodes= [
            {$houzhui}
        ];
        var dqNode= [
            {$diqustr}
        ];



        function beforeDrag(treeId, treeNodes) {
            for (var i = 0, l = treeNodes.length; i < l; i++) {
                if (treeNodes[i].drag === false) {
                    return false;
                }
            }
            return true;
        }
        function beforeDrop(treeId, treeNodes, targetNode, moveType) {
            return targetNode ? targetNode.drop !== false : true;
        }
        function onDrop(event, treeId, treeNodes, targetNode, moveType, isCopy) {
            jingzhun();
            diqu();
        }
        $(document).ready(function () {
            $.fn.zTree.init($("#jzbase"), setting, zNodes);
            $.fn.zTree.init($("#jzval"), setting);
            $.fn.zTree.init($("#dqbase"), setting, dqNode);
            $.fn.zTree.init($("#dqval"), setting);
        });
    </SCRIPT>
    <style type="text/css">
        .formcon {
            padding: 10px 0;
        }

            /* flow_steps */
        #grxx {
            margin-left: 2px;
            width: 24%
        }

        #zjxx {
            width: 24%
        }

        #qzxx {
            width: 24%
        }

        .flow_steps {
            height: 23px;
            overflow: hidden;
        }

        .flow_steps li {;
            float: left;
            height: 23px;
            padding: 0 40px 0 30px;
            line-height: 23px;
            text-align: center;
            background: url(__PUBLIC__/images/barbg.png) no-repeat 100% 0 #E4E4E4;
            font-weight: bold;
        }

        .flow_steps li.done {
            background-position: 100% -46px;
            background-color: #85C143;
        }

        .flow_steps li.current_prev {
            background-position: 100% -23px;
            background-color: #85C143;
        }

        .flow_steps li.current {
            color: #fff;
            background-color: #FF7902;
        }

        .flow_steps li#qzxx.current, .flow_steps li.last {
            background-image: none;
        }
    </style>
</head>
<body>
<include file="Index:top"/>
<div id="main" style="overflow:hidden;">
<include file="User:left"/>
<div id="main_right" class="container">
<div class="title">添加精准词<button class="button_s green" style="float:right;margin-top:5px; padding:1px 10px"
                                onclick="window.history.go(-1)">返回</button></div>
    <form name="form" id="form" class="form" showOnMouseOver="false">
        <table style="margin-left:20px;" cellpadding=5>
            <tr>
                <td style="padding-left:55px;">B2B标识
                    <input type="text" id="b2b" name="b2b" class="validate[required],input"/></td>
                <td colspan="2"><div class="validation_info"></div></td>
            </tr>
            <tr>
                <td>
                    <div class="container l" style="margin-left:110px;">
                        <div class="title">系统后缀词库</div>
                        <ul id="jzbase" class="ztree" style="height:150px; width:150px;overflow:auto;"></ul>
                    </div>
                </td>
                <td>
                    <div>
                        <img src="__PUBLIC__/images/jiantou.png" title="箭头"/>
                    </div>
                </td>
                <td>
                    <textarea rows="10" cols="30" id="jingzhunci" name="jingzhunci" style="display:none;"></textarea>
                    <div class="container r" style="margin-right:110px;">
                        <div class="title">客户后缀词</div>
                        <ul id="jzval" class="ztree" style="height:150px; width:150px;overflow:auto;"></ul>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="container l" style="margin-left:110px;">
                        <div class="title">精准词投放地区</div>
                        <ul id="dqbase" class="ztree" style="height:150px; width:150px;overflow:auto;"></ul>
                    </div>
                </td>
                <td>
                    <div>
                        <img src="__PUBLIC__/images/jiantou.png" title="箭头"/>
                    </div>
                </td>
                <td>
                    <textarea rows="10" cols="30" id="district" name="district" style="display:none;"></textarea>
                    <div class="container r" style="margin-right:110px;">
                        <div class="title">客户投放地区</div>
                        <ul id="dqval" class="ztree" style="height:150px; width:150px;overflow:auto;"></ul>
                    </div>
                </td>
            </tr>
            <tr><td colspan="3">
                <div style="clear:both;text-align:center">
                    <input type="button" class="button_s green" value="提交" onclick="validateForm('#form','__URL__/addjingzhun')"/>
                </div>
            </td></tr>
        </table>
        <input type="hidden" name="name" value="{$userName}"/>
    </form>
<include file="Index:footer"/>
</body>
</html>